package com.example.cassandra_demo.repository;

import com.example.cassandra_demo.model.HotelByLetter;
import com.example.cassandra_demo.model.HotelByLetterKey;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: Crystal
 * @Date: 2019/1/22 12:17
 **/
public interface HotelByLetterRepository {
    List<HotelByLetter> findByFirstLetter(String letter);
    HotelByLetter save(HotelByLetter hotelByLetter);
    void delete(HotelByLetterKey hotelByLetterKey);
}
